// 常用定义
//  CommonDefine.h
//  yilutongxing
//
//  Created by T&J on 2017/3/31.
//  Copyright © 2017年 YZE. All rights reserved.
//

#ifndef CommonDefine_h
#define CommonDefine_h

#define FOOTER_HEIGHT 100
#define BTN_ROW_WIDTH 220
#define BTN_ROW_HEIGHT 40

//所有边框线浅灰色
#define COLOR_BORDER_GRAY [UIColor colorWithRed:230/255.0 green:230/255.0 blue:230/255.0 alpha:1.0]
#define COLOR_BG_GRAY [UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]

//已选择的专项指标名称数组plist文件名
#define CHOOSEN_PROINDEX @"choosenIndex.plist"

#define PAGESIZE 10 //列表类型页面数据每次请求的条数

#define ROWINDEX(x) 10000*((x).section+1)+(x).row //把tableview的NSIndexPath转换为整型数字索引
#define DEROWINDEX(x) [NSIndexPath indexPathForRow:(x)%10000 inSection:(x)/10000-1]  //把整型索引转换为tableview的NSIndexPath

#define APP_CLIENT_TYPE @"sickapp" //app类型，医生端or病人端。用于登录时提交

#define GLOBAL_BG_QUEUE dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)
#define MAIN_BG_QUEUE dispatch_get_main_queue()

#define iOS10Later ([UIDevice currentDevice].systemVersion.floatValue >= 10.0f)
#define iOS11Later ([UIDevice currentDevice].systemVersion.floatValue >= 11.0f)

#endif /* CommonDefine_h */
